package drds.data_propagate.store;

import drds.data_propagate.common.utils.ToStringStyle;
import drds.propagate.protocol.position.PositionRange;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 代表一组数据对象的集合
 *
 * @author jianghang 2012-6-14 下午09:07:41
 * @version 1.0.0
 */
public class Events<Event> implements Serializable {

    private static final long serialVersionUID = -7337454954300706044L;

    private PositionRange positionRange = new PositionRange();
    private List<Event> eventList = new ArrayList<Event>();

    public List<Event> getEventList() {
        return eventList;
    }

    public void setEventList(List<Event> eventList) {
        this.eventList = eventList;
    }

    public PositionRange getPositionRange() {
        return positionRange;
    }

    public void setPositionRange(PositionRange positionRange) {
        this.positionRange = positionRange;
    }

    public String toString() {
        return ToStringStyle.toString(this);
    }
}
